import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

class ApplePlugin {
  static const _restoreVip = MethodChannel('com.kudos.ios/appleLogin');

  static Future<bool> appleLogin() async {
    bool result = false;
    try {
      bool data = await _restoreVip.invokeMethod('AppleLogin');
      result = data;
    } on PlatformException catch (e) {
      debugPrint('appleLogin Error: ${e.message}');
    }
    return result;
  }
}
